<% if params[:form_type]=='interest'  %>
<div id="interest">
<div class="indentpop clearfix">
<form action="/interest/<%= params[:id] %>" method="POST" id="interest_form" class="j a_interest_form">
    <%= tag(:input, :type => "hidden", :name =>request_forgery_protection_token.to_s, :value =>   
	form_authenticity_token) %>
	<input type="hidden" name="interest" value="<%= params[:interest] %>">
        <span class="gact rr"><a href="javascript:void(O)" onclick="close_dialog()">x</a></span>
	<% if params[:cmt]=='1'  %>
	<div style="font-size:14px; margin-bottom:15px"><label><input type="radio" value="wish" name="interest">&nbsp;想买 </label>&nbsp;&nbsp;<label><input type="radio" value="collect" checked="checked" name="interest">&nbsp;买过了 </label>&nbsp;&nbsp;</div>
	<% else  %>
	<h2><% if params[:interest]=='collect' %>我买过了<% else %>我想买<% end  %> &nbsp; ·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;</h2>
	<% end  %>
    <% unless params[:interest]=='wish'  %>
	<span class="j a_stars"><p class="rate_stars">给个评价吧?(可选):
	<span id="rating"><span id="stars">
	<% params[:rating].to_i.times do |i|  %>
    	<img src="http://movie.douban.com/pics/st.gif" id="star<%= i+1 %>">
	<% end  %>
	<% (5-params[:rating].to_i).times do |ii|  %>
		<img src="http://movie.douban.com/pics/nst.gif" id="star<%= params[:rating].to_i+ii+1 %>">
	<% end if (5-params[:rating].to_i)>0 %>
	</span>
	<span id="rateword" class="pl"></span></span>
    <input id="n_rating" type="hidden" value="<%= params[:rating] %>" name="rating"></p></span>
	<% end  %>
	<a class="rr" id="showtags" rel="高级(标签和短评) ▼" href="javascript:void(0)">缩起 ▲</a><input id="foldcollect" name="foldcollect" value="U" type="hidden">

    <ul id="advtags" class="interest_form ">
        <li>标签(多个标签用空格分隔): </li>
        <li><input name="tags" type="text" id="input_tags" style="width: 350px;"></li>

        <li id="mytags" class="clearfix"></li>
		<li id="populartags" class="clearfix"><dl>
			<dt>常用标签:</dt><dd>
			  <% @tags.each do |tag|  %>
			   <span class="tagbtn1 gract"><%= tag.name %></span> &nbsp; 
				<% end  %>
			 </dd></dl>
		</li>
		<li>印象(多个印象用空格分隔): </li>
        <li><input name="impressions" type="text" id="input_impression" style="width: 350px;"></li>
		<li id="mytags" class="clearfix"></li>
		<li id="populartags" class="clearfix"><dl>
			<dt>常用标签:</dt><dd>
			  <% @tags.each do |tag|  %>
			   <span class="tagbtn2 gract"><%= tag.name %></span> &nbsp; 
				<% end  %>
			 </dd></dl>
		</li>
        <li>简短评论:</li>
        <li><textarea name="comment" class="w450 h65" id="comment"></textarea>
    <label id="left_n" class="pl">140</label> <div id="error" class="errnotnull"></div></li>
        <li><label class="pl"><input name="private" type="checkbox">不让别人知道这次收藏</label></li>
    
    </ul>
    <ul class="interest_form" id="submits">
        <li class="mt15">
            <input type="submit" value="保存" name="save">
            <input type="button" name="cancel" value="取消" onclick="close_dialog();">
        </li>
    </ul>
</form>
</div>
</div>
<% elsif params[:form_type]=='recommend' %>
<div id="recommend">
<form method="post" action="/recommend/<%= params[:id] %>" id="interest_form" class="j a_rec_form">
    <%= tag(:input, :type => "hidden", :name =>request_forgery_protection_token.to_s, :value =>   
	form_authenticity_token) %>
	<div class="rectitle">
    <span class="gact rr"><a href="javascript:void(O)" onclick="close_dialog()">x</a></span>
    
        <span class="m">向我的好友推荐 <%= @item.name %></span>
        <!--<span class="recsmr">摘要: Inception / Christopher Nolan / Leonardo DiCaprio / 美国</span></div -->
		</div>
        <div class="reccomment">
        <span class="pl">推荐语:</span>
        <textarea class="text" name="comment" rows="3"></textarea>
        <div class="recsubmit" id="submits">
        <input value="确定" type="submit"><input value="取消" onclick="close_dialog();" type="button">
        </div>
        </div><input name="novote" value="1" type="hidden">
</form>
</div>
<% elsif params[:form_type]=='collect'  %>
<div id="collect">
<form method="post" action="/collect/<%= params[:id] %>" id="interest_form" class="j a_rec_form">
    <%= tag(:input, :type => "hidden", :name =>request_forgery_protection_token.to_s, :value =>   
	form_authenticity_token) %>
	<div class="rectitle">
    <span class="gact rr"><a href="javascript:void(O)" onclick="close_dialog()">x</a></span>
    
        <span class="m">收藏 <%= @item.name %></span>
		</div>
        <!--<span class="recsmr">摘要: Inception / Christopher Nolan / Leonardo DiCaprio / 美国</span></div -->
		<div style="margin-left:27px">
			<span class="pl">我的衣柜:</span>
	        <select name="collect_name" style="width:auto">
				<% @my_collect.each do |opt|  %>
					<option value="<%= opt.id %>"><%= opt.title %></option>
				<% end  %>
			</select>
		</div>
        <div class="reccomment">
        <span class="pl">备注:</span>
        <textarea class="text" name="comment" rows="3"></textarea>
        <div class="recsubmit" id="submits">
        <input value="确定" type="submit"><input value="取消" onclick="close_dialog();" type="button">
        </div>
        </div><input name="novote" value="1" type="hidden">
</form>
</div>	
<% end  %>